libxl: SECURITY: always honour request for vnc password
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 4 Feb 2011 18:45:26 +0000 (18:45 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 4 Feb 2011 18:45:26 +0000 (18:45 +0000)
commiteab5a930c55194b24e1fba03dd60aea9aa6bcc5f
treeba97499bff312aba447fc442efaa59df1631cf22
parentc6adcbdc012e2f003ac74f3c175e4a4ceac1173a
libxl: SECURITY: always honour request for vnc password

qemu only sets a password on its vnc display if the value for the -vnc
option has the ",password" modifier.  The code for constructing
qemu-dm options was broken and only added this modifier for one of the
cases.

Unfortunately there does not appear to be any code for passing the vnc
password to upstream qemu (ie, in the case where
libxl_build_device_model_args_new is called).  To avoid accidentally
running the domain without a password, check for this situation and
fail an assertion.  This will have to be revisited after 4.1.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c